package com.zpark.sports.controller;

import com.zpark.sports.pojo.BasketballMallUser;
import com.zpark.sports.service.IUserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

/**
 * 用户控制层
 * @Author: Abigale
 * @Date: 2022/10/19 17:23
 * @Version: 1.0
 */
public class BaseController {

    public final static Integer CODE_SUCCESS = 2000;

    public BasketballMallUser getUser(HttpSession session){
        return (BasketballMallUser) session.getAttribute("User");
    }
}
